#define _GNU_SOURCE
#include <pthread.h>
#include <unistd.h>
#include <stdio.h>

void *thread_func01(void *arg)
{
    while (1)
    {
        printf("thread_func01 : %d\n", gettid());
        sleep(1);
    }
}

void *thread_func02(void *arg)
{
    while (1)
    {

        printf("thread_func02: %d\n", gettid());
        sleep(1);
    }
}

int main(int argc, char const *argv[])
{
    pthread_t t1, t2;
    pthread_create(&t1, NULL, thread_func01, NULL);
    pthread_create(&t2, NULL, thread_func02, NULL);

    sleep(10000);
    return 0;
}
